//
//  VDLabel.m
//  PreComposing
//
//  Created by vedon on 14/7/2016.
//  Copyright © 2016 vedon. All rights reserved.
//

#import "VDLabel.h"
#import "VDDisplayLayer.h"

@interface VDLabel()<VDDisplayLayerDelegate>


@end

@implementation VDLabel

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.displayLayer.displayDelegate = self;
        self.displayLayer.hostLayer = [UILabel layerClass];
    }
    return self;
}


+ (Class)layerClass
{
    return [VDDisplayLayer class];
}

- (VDDisplayLayer *)displayLayer
{
    return (VDDisplayLayer *)self.layer;
}

#pragma mark - VDDisplayLayerDelegate

- (void)displayAsyncLayout:(VDDisplayLayer *)layer asynchronously:(BOOL)asynchronously
{
    
}

- (void)drawRect:(CGRect)rect withParameters:(id)parameters
{
    
}

- (void)cancelDisplayAsyncLayout:(VDDisplayLayer *)layout
{
    
}

@end
